body {
    margin: 0;
    padding: 0;
    font-family: 'Droid Sans', sans-serif;
}

#header {
    width: 100%;
    height: 36px;
    background-color: #2e3436;
    color: #eeeeec;
    min-width: 900px;
}

#topbar, #content {
    width: 900px;
}

#topbar {
    margin: 0 auto;
}

#header h1 {
    font-size: 20px;
    padding: 0;
    margin: 7px 32px 8px 0;
    float: left;
}

#header h1 a {
    background-color: inherit;
    color: inherit;
    text-decoration: none;
}

#search {
    float: left;
}

#search p {
    margin: 0;
    padding: 0;
}

#search input.hint {
    font-style: italic;
}

#search input, #search select, #search button {
    background-color: #babdb6;
    border: 1px solid #2e3436;
    color: #2e3436;
    float: left;
    margin: 0;
    position: relative;
    top: 5px;
}

#search input {
    border-bottom-left-radius: 5px 5px;
    border-top-left-radius: 5px;
    border-right: none;
    padding: 5px;
    width: 220px;
    height: 15px;
}

#search button {
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
    background-image: url("../images/magnifying-glass.png");
    background-repeat: no-repeat;
    background-position: center;
    color: transparent; /* Hide button text in Firefox */
    padding: 5px;
    border-left: none;
    text-indent: -1000px; /* Move button text out of sight */
    width: 25px;
    height: 27px;
    cursor: pointer;
}

#search select {
    padding: 4px;
    height: 27px;
    margin-right: 3px;
}

#search label[for="q"],
#search label[for="category_id"] {
    display: none;
}

/* Navigation */
#nav {
    float: right;
}

#nav, #nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#nav a {
    background-color: inherit;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    color: #eeeeec;
    display: block;
}

#nav li:hover > a {
    background-color: #3465a4;
    color: inherit;
}

#nav .last-nav-item:hover > a {
    background-color: #3465a4;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

#nav > li {
    float: left;
    margin: 0;
}

#nav > li > a {
    margin: 0;
    padding-top: 11px;
    padding-bottom: 10px;
    padding-left: 15px;
    padding-right: 15px;
}

#nav ul {
    background-color: #2e3436;
    position: absolute;
    visibility: hidden;
    min-width: 150px;
    z-index: 10;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

#nav > li:hover > ul {
    visibility: visible;
}

#nav ul li {
    padding: 0;
    margin: 0;
}

#nav ul a {
    display: block;
    padding-left: 30px;
    padding-top: 11px;
    padding-right: 15px;
    padding-bottom: 11px;
}


/* Content */
#content {
    margin: 1em auto 3em auto;
    position: relative;
}

#content a {
    background-color: inherit;
    color: #3465a4;
    text-decoration: none;
}

#content a:hover {
    text-decoration: underline;
}

#content h2 {
    border-bottom: 1px solid #2e3436;
    font-size: 24px;
}

#sort {
    font-size: 13px;
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 8px;
}

#sort ul {
    margin: 0;
    padding: 0;
    float: left;
    list-style-type: none;
}

#sort p {
    margin: 0;
    float: left;
    margin-right: 0.5em;
}

#sort li {
    border-left: 1px solid #888a85;
    display: block;
    float: left;
    padding: 0 0.7em;
}

#sort li:first-child {
    border-left: none;
}

#sort .sort-last {
    padding-right: 0;
}

#sort .selected {
    font-weight: bold;
}


/* Pagination */
#content .pagination {
    text-align: center;
    margin-top: 20px;
}

#content .pagination .prev a,
#content .pagination .next a {
    border: none;
    background-color: inherit;
}

#content .pagination span a {
    background-color: white;
    border: 1px solid #888a85;
    padding: 3px;
    color: #888a85;
}

#content .pagination span.current {
    background-color: #888a85;
    color: #eeeeec;
    padding: 4px;
    font-weight: bold;
}


/* Shopping cart */
#cart td {
    vertical-align: top;
}

#cart th {
    white-space: nowrap;
}

.cart-item {
    width: 100%;
    text-align: left;
}

.cart-quantity {
    white-space: nowrap;
    text-align: right;
}

.cart-price {
    text-align: right;
}

tfoot .cart-price {
    font-weight: bold;
}

#cart tfoot .cart-price {
    border-top: 1px solid black;
}

.actions {
    padding: 0;
    list-style-type: none;
}

.actions li {
    display: inline-block;
    padding-right: 10px;
}

.product-quantity-form, .product-remove-form {
    float: left;
}

.product-quantity-form div {
    float: left;
}

.product-quantity {
    width: 4ex;
}


/* Flash messages */

#flash-notice {
    background-color: #8ae234;
    border-top: 2px solid #4e9a06;
    color: #2e3436;
    font-weight: bold;
    left: 0;
    padding: 0.5em;
    position: fixed;
    text-align: center;
    bottom: 0;
    width: 100%;
    z-index: 10;
}

.flash-notice p {
    margin: 0;
    padding: 0;
}


/* Product listing */

#product-list, #products-listing {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#product-list li {
    border-bottom: 1px dotted #888a85;
    position: relative;
}

#product-list h3 {
    font-size: 19px;
}

#product-list h3,
#product-list .excerpt,
#product-list .comments {
    width: 700px;
}

#product-list .ratings {
    position: absolute;
    top: 0;
    left: 700px;
    width: 100px;
    margin: 0;
    padding: 0;
    text-align: center;
}

.rating_nojs input[type="submit"] {
    margin-left: 0;
}

.rating_nocss {
    display: none;
}

.stars {
    display: block;
    margin: auto auto;
    background-image: url(../images/star-dim.png);
    background-repeat: repeat-x;
    width: 80px;
    height: 16px;
}

.stars.rateable {
    cursor: pointer;
}

.stars span {
    display: block;
    background-image: url(../images/star-bright.png);
    background-repeat: repeat-x;
    height: 100%;
}

.votes {
    margin-top: 5px;
    display: block;
    font-size: 10px;
    color: #555753;
}

#product-list .price,
#product-list .stock,
#product-list .buy {
    position: absolute;
    right: 0;
    margin: 0;
    padding: 0;
    width: 100px;
    text-align: right;
}

#product-list .price {
    top: 0;
    font-weight: bold;
}

#product-list .stock {
    top: 21px;
    font-size: 10px;
    color: #555753;
}

#product-list .stock .zero {
    color: #ef2929;
}

#product-list .buy {
    bottom: 10px;
}

#product-list .rating_data {
    display: none;
}

form.buy input[type="submit"] {
    margin: 0;
}

#product-list .comments {
    font-size: 12px;
    color: #555753;
}

#product-comments .comment {
    margin-top: 10px;
    margin-bottom: 20px;
}

#product-comments .reply {
    margin-top: 4px;
}

#product-comments .username {
    font-weight: bold;
}

#product-comments .cancel_reply a {
    background-color: white;
    border: 1px solid #888a85;
    padding: 1px 3px 1px 3px;
    color: #888a85;
}

#product-comments .reply_to a {
    background-color: white;
    border: 1px solid #888a85;
    padding: 1px 3px 1px 3px;
    color: #888a85;
}

#content .replying_to {
    background-color: #888a85;
    color: #eeeeec;
    padding: 2px 4px 2px 4px;
    font-weight: bold;
}

#product-detail .price,
#product-detail .stock,
#product-detail .buy {
    float:right;
    clear:right;
    right: 0;
    margin: 0;
    padding: 0;
    text-align: right;
}

#product-detail .price {
    font-weight: bold;
    font-size: 30px;
}

#product-detail .stock {
    font-size: 14px;
    color: #555753;
}

#product-detail .ratings {
    left: 0px;
    width: 100px;
    margin: 0;
    padding: 0;
    text-align: center;
}


/* Checkout */

#checkout-shipping-info {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.error-header {
    color: #ff0000;
}


/* Forms */
form ul {
    list-style-type: none;
    margin: 0 0 40px 0;
    padding: 0;
}


form li {
    margin: 0;
    padding: 5px 0px;
    clear: both;
}

form li label {
    display: block;
    width: 120px;
    float: left;
    clear: left;
    font-size: 12px;
    margin-top: 8px;
    margin-right: 10px;
    text-align: right;
}

form li label.error {
    clear: none;
    color: #555753;
    margin-left: 10px;
    text-align: left;
    width: auto;
}

/* Styling for Django's error messages, which are before the input */
form li label.error:first-child {
    float: right;
    margin-right: 0;
    width: 425px;
}

form li input.error,
form li textarea.error,
form li input.valid,
form li textarea.valid {
    background-repeat: no-repeat;
    background-position: 310px 5px;
}

form li input.error,
form li textarea.error {
    background-image: url("../images/error.png");
}

form li input.valid,
form li textarea.valid {
    background-image: url("../images/checkmark.png");
}

form li input, form li textarea {
    border: 1px solid #555753;
    border-radius: 3px;
    display: block;
    float: left;
    padding: 5px 25px 5px 5px;
    width: 300px;
}

form fieldset {
    border: none;
    border-top: 1px solid #d3d7cf;
    margin: 0;
    padding: 0;
    margin-bottom: 10px;
    background-image: url("../images/gradient.png");
    background-repeat: repeat-x;
    background-position: left top;
    position: relative;
}

form fieldset ul {
    padding-top: 25px;
}

form legend {
    margin: 0;
    padding: 0;
}

form legend span {
    display: block;
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

form input[type="submit"] {
    margin-left: 130px;
}

textarea {
    resize: none;
}


th, td {
    text-align: left;
    padding: 4px 10px;
}

#order-listing {
    width: 100%;
}

.order-notpaid-text {
    color: red;
}

.order-processed-text {
    color: blue;
}

.order-shipped-text {
    color: green;
}

.order-item {
    text-align: left;
}

.order-price, .order-quantity {
    text-align: right;
}

.shipping_address_user p {
    font-family: monospace;
    margin: 0;
}

.shipping-address {
    font-family: monospace;
    margin-left: 15px;
}

.order-item-products th {
    width: 100%;
    white-space: nowrap;
}

.order-display h3 {
    margin-top: 0;
}

.order-display form {
    margin-top: 10px;
}

.order-item-shipping, .order-item-status {
    margin-bottom: 30px;
}

.order-quantity {
    padding-right: 5px;
}

.checkout-price-title {
    text-align: right;
    vertical-align: text-bottom;
    padding-top: 30px;
    padding-right: 10px;
}

.checkout-price {
    font-weight: bold;
    padding-right: 5px;
    vertical-align: text-bottom;
}



